package com.jordge.hibernate.pojo;

import java.util.Set;

public class Work{
    private int id;
    private String name;
    private Set<Author> authors;

    public void setId(int id){
        this.id=id;
    }

    public void setName(String name){
        this.name=name;
    }

    public String getName(){
        return this.name;
    }

    public int getId(){
        return this.id;
    }

    public void setAuthors(Set<Author> authors){
        this.authors=authors;
    }

    public Set<Author> getAuthors(){
        return this.authors;
    }
}